﻿<%@ Page Title="" Language="C#" MasterPageFile="~/admin/Admin.Master" AutoEventWireup="true"
    CodeBehind="Orderdetail.aspx.cs" Inherits="PHTShop.admin.WebForm3" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
  <div id="title" class="b2">
        
        <h2>
          List product in <label type="text" runat="server" id="lblordername"></label></h2>
    </div>
     <p>
    </p>
    <div class="listActions">
        <label for="actionSelect">
            Choose language: 
           
        </label> <asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="true" OnSelectedIndexChanged="DropDownList1_selectchanged" >
            </asp:DropDownList>
     
    </div>
    <p>
    </p>
    <asp:ListView ID="ListView1" runat="server" 
        onitemdatabound="ListView1_ItemDataBound" 
        onpagepropertieschanging="ListView1_PagePropertiesChanging">
    <LayoutTemplate>
    
    <table width="100%">
        <tr>
        <td>Product name</td>
        <td>Product Price</td>
        <td>Discount</td>
        <td>Sales</td>
        <td>Quantity</td>
        <td>Total</td>
        </tr>
        <tbody>
            <asp:PlaceHolder ID="itemPlaceholder" runat="server" ></asp:PlaceHolder>
        </tbody>
     
    </table>
    </LayoutTemplate>
    <ItemTemplate>
        <tr>
            <td>
               <span> <%# Eval("ProductName") %></span>
                <asp:HiddenField ID="hdfOrderID" runat="server" Value='<%# Eval("OrderID") %>' />
                <asp:HiddenField ID="hdfProductID" runat="server" Value='<%# Eval("ProductID") %>' />
            </td>
            <td><%# Eval("ProductPrice") %></td>
            <td><%# Eval("ProductDiscount") %></td>
            <td><%# Eval("sales") %></td>
            <td><%# Eval("Quantity") %></td>
            <td>
                <asp:Label ID="lblTotal" runat="server" Text="Label"></asp:Label> </td>
        </tr>
        
    </ItemTemplate>
   
    </asp:ListView>
     <asp:LinkButton ID="lbtnCustomerOrdered" OnClick="lbtnCustomerOrdered_Click" runat="server">Back</asp:LinkButton>
     <div class="inner">
        <div class="paginate">
        <% if (ListView1.DataSource != null)
           { %>
            <asp:DataPager ID="DataPager1" runat="server" PagedControlID="ListView1" PageSize="10">
                <Fields>
                    <asp:NextPreviousPagerField ShowFirstPageButton="true" ShowPreviousPageButton="true"
                        ButtonType="Link" ShowNextPageButton="false" ShowLastPageButton="false" />
                    <asp:NumericPagerField ButtonType="Link" />
                    <asp:NextPreviousPagerField ShowFirstPageButton="false" ButtonType="Link" ShowPreviousPageButton="false"
                        ShowNextPageButton="true" ShowLastPageButton="true" />
                </Fields>
            </asp:DataPager>
            <%} %>
        </div>
    </div>
    <p>
    </p>
        
</asp:Content>
